﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="TH_NhaPhanPhoiAdmin.ascx.cs" Inherits="admin_MyUserControls_TH_NhaPhanPhoiAdmin" %>
<asp:Label ID="lblStatus" runat="server" CssClass="AdminPageText" 
    Text=""></asp:Label>
<p>
    <asp:Label ID="lblLocation" runat="server" CssClass="AdminPageText" 
        Text="Các nhà phân phối hiện thời"></asp:Label>
</p>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <ContentTemplate>
        <asp:GridView ID="grid" runat="server" AutoGenerateColumns="False" 
            DataKeyNames="id" Width="100%" 
            onpageindexchanging="grid_PageIndexChanging" 
            onrowcancelingedit="grid_RowCancelingEdit" onrowdeleting="grid_RowDeleting" 
            onrowediting="grid_RowEditing" onrowupdating="grid_RowUpdating" 
            onrowdatabound="grid_RowDataBound" >
            <Columns>
                <asp:TemplateField HeaderText="Tên nhà phân phối" 
                    SortExpression="TenNhaPhanPhoi">
                    <EditItemTemplate>
                        <asp:TextBox ID="txtTenNPP" runat="server" 
                            Text='<%# Bind("TenNhaPhanPhoi") %>'
                            Width="200px">
                        </asp:TextBox>
                    </EditItemTemplate>
                    <ItemTemplate>
                        <asp:Label ID="Label1" runat="server" Text='<%# Bind("TenNhaPhanPhoi") %>'></asp:Label>
                    </ItemTemplate>
                    <ControlStyle Width="200px" />
                </asp:TemplateField>
                <asp:CommandField ShowEditButton="True" />
                <asp:TemplateField  HeaderText="">
                    <ItemTemplate>
                        <asp:LinkButton ID="lnkbtnDelete" CommandArgument='<%# Eval("id") %>' CommandName="Delete" runat="server">Delete</asp:LinkButton>
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
        </asp:GridView>
    </ContentTemplate>
</asp:UpdatePanel>

<br />
<br />
